﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ZG_MemberDataSet" targetNamespace="http://tempuri.org/ZG_MemberDataSet.xsd" xmlns:mstns="http://tempuri.org/ZG_MemberDataSet.xsd" xmlns="http://tempuri.org/ZG_MemberDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ZG_MemberConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ZG_MemberConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.ZG_member.Properties.Settings.GlobalReference.Default.ZG_MemberConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="advInfoTableAdapter" GeneratorDataComponentClassName="advInfoTableAdapter" Name="advInfo" UserDataComponentName="advInfoTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="ZG_MemberConnectionString (Settings)" DbObjectName="ZG_Member.dbo.advInfo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[advInfo] WHERE (([id] = @Original_id) AND ((@IsNull_advContent = 1 AND [advContent] IS NULL) OR ([advContent] = @Original_advContent)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_advContent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="advContent" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_advContent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="advContent" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[advInfo] ([advContent]) VALUES (@advContent);
SELECT id, advContent FROM advInfo WHERE (id = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@advContent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="advContent" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT id, advContent FROM dbo.advInfo</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[advInfo] SET [advContent] = @advContent WHERE (([id] = @Original_id) AND ((@IsNull_advContent = 1 AND [advContent] IS NULL) OR ([advContent] = @Original_advContent)));
SELECT id, advContent FROM advInfo WHERE (id = @id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@advContent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="advContent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_advContent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="advContent" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_advContent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="advContent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="id" DataSourceName="ZG_Member.dbo.advInfo" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="id" DataSetColumn="id" />
              <Mapping SourceColumn="advContent" DataSetColumn="advContent" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ZG_MemberDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="ZG_MemberDataSet" msprop:Generator_UserDSName="ZG_MemberDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="advInfo" msprop:Generator_TableClassName="advInfoDataTable" msprop:Generator_TableVarName="tableadvInfo" msprop:Generator_TablePropName="advInfo" msprop:Generator_RowDeletingName="advInfoRowDeleting" msprop:Generator_UserTableName="advInfo" msprop:Generator_RowChangingName="advInfoRowChanging" msprop:Generator_RowEvHandlerName="advInfoRowChangeEventHandler" msprop:Generator_RowDeletedName="advInfoRowDeleted" msprop:Generator_RowEvArgName="advInfoRowChangeEvent" msprop:Generator_RowChangedName="advInfoRowChanged" msprop:Generator_RowClassName="advInfoRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_UserColumnName="id" type="xs:int" />
              <xs:element name="advContent" msprop:Generator_ColumnVarNameInTable="columnadvContent" msprop:Generator_ColumnPropNameInRow="advContent" msprop:Generator_ColumnPropNameInTable="advContentColumn" msprop:Generator_UserColumnName="advContent" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:advInfo" />
      <xs:field xpath="mstns:id" />
    </xs:unique>
  </xs:element>
</xs:schema>